<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<script src="http://xnimg.cn/n/core/object-all.js"></script>
		<script>
			object.use('dom', function(exports, dom) {
				dom.ready(function() {
					var textarea = dom.wrap(document.getElementById('textarea'));
				});
			});
		</script>
	</head>
	<body>
		<textarea id="textarea"></textarea>
		<button onclick="alert(document.getElementById('textarea').get('selectionStart'))">看看</button>
	</body>
</html>
